package tx.os3.opdracht1.deel2;

import javax.swing.JFrame;

public class Main {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // Create model
        FileLister fileLister = new FileLister();

        // Create view
        MainWindow window = new MainWindow();
        window.setFileLister(fileLister);
        window.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

        // Bind model and view
        fileLister.addObserver(window);

        // Show window
        window.setVisible(true);

    }

}
